/**
 * 自定义全局指令
 */
import Vue from 'vue'

let rules = ['AAA']
/**
 * 权限
*/
Vue.directive('auth', {
  bind: function (el, binging, vnode) {
    console.log(el, binging, vnode)
    if (!rules.includes(binging.value)) {
      el.style.display = 'none'
    }
  }
})
